package test30;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ws
 * Date: 2023-04-23
 * Time: 16:51
 */

import java.util.*;
import java.io.*;

public class Main {
    static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    static PrintStream out = new PrintStream(new BufferedOutputStream(System.out), true);

    public static void main(String[] args) throws IOException {
        String password = null;
        while ( (password = br.readLine()) != null) {
            String original = translation(password);
            out.println(original);
        }
    }

    public static String translation(String password) {
        StringBuilder sb = new StringBuilder();
        int n = password.length();
        for (int i = 0; i < n; i++) {
            char temp = password.charAt(i);
            if (temp >= 'A' && temp <= 'Z') {
                if (temp >= 'F') {
                    sb.append((char) (temp - 5));
                } else {
                    sb.append((char) (temp + 21));
                }
            } else {
                sb.append(temp);
            }
        }
        return sb.toString();
    }
}
